package com.efast.cafe.portal.controller.company;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.efast.cafe.framework.controller.AbstractController;
import com.efast.cafe.portal.entity.company.PortalCompanyUserSettingDto;
import com.efast.cafe.portal.service.company.IPortalCompanyUserOrgService;

/******************************************************************************
 * @File name : PortalCompanyUserOrg.java
 * 
 * @Author : xl
 * 
 * @Date : 2016-9-1
 * 
 * @Copyright Notice: Copyright (c) 2016 Efast Serv. All Rights Reserved. This
 *            software is published under the terms of the Efast Software
 *            License version 1.0, a copy of which has been included with this
 *            distribution in the LICENSE.txt file.
 * 
 * 
 *            ------------------------------------------------------------------
 *            ---------- Date Who Version Comments 2016-9-1 上午11:30:36 xl 1.0
 *            Initial Version
 *****************************************************************************/
@Controller
@RequestMapping("/frame_center/company")
public class PortalCompanyUserOrgController extends AbstractController {

	@Autowired
	private IPortalCompanyUserOrgService portalCompanyUserOrgService;


	
	
	
	
	
	/**
	 * 保存用户默认设置
	 * @param model
	 * @param request
	 * @param response
	 * @return
	 */
	@RequestMapping(value = "/user/save/setting")
	public @ResponseBody String saveUserSetting(ModelMap model, 
			@ModelAttribute PortalCompanyUserSettingDto portalCompanyUserSettingDto,
			HttpServletRequest request, 
			HttpServletResponse response){
		return portalCompanyUserOrgService.saveUserSetting(portalCompanyUserSettingDto);
	}
	
}
